﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="regist.aspx.cs" Inherits="regist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
            height: 428px;
            background-image: url('regbg.jpg');
        }
        .style2
        {
            height: 316px;
        }
        .style3
        {
            height: 316px;
            width: 467px;
        }
        .style4
        {
            width: 781px;
        }
        h3
        {
        }
        .style5
        {
            width: 100%;
            height: 292px;
        }
        .style6
        {
            width: 119px;
        }
    </style>
</head>
<center>
<body style ="text-align:center">
    <form id="form1" runat="server" class="style4">
    <div style="height: 428px; width: 783px;">
    
        <table class="style1">
            <tr>
                <td class="style2">
                </td>
                <td class="style3">
                    <div style="width: 100%; height: 99%">
                        <table class="style5" style="width: 100%; height: 100%">
                            <tr>
                                <td class="style6">
                                    <div style="width: 100%; margin-right: 0px; height: 100%;">
                                        用户名:</div>
                                </td>
                                <td>
                                    <div style="width: 100%; height: 100%">
                                        <asp:TextBox ID="TextBoxName" runat="server" Width="195px"></asp:TextBox>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="style6">
                                    <div style="width: 100%; margin-right: 0px; height: 100%;">
                                        密码:</div>
                                </td>
                                <td>
                                    <div style="width: 100%; height: 100%">
                                        <asp:TextBox ID="TextBoxPassWord" runat="server" TextMode="Password" 
                                            Width="195px"></asp:TextBox>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="style6">
                                    <div style="width: 100%; margin-right: 0px; height: 100%;">
                                        重复密码:</div>
                                </td>
                                <td>
                                    <div style="width: 100%; height: 100%">
                                        <asp:TextBox ID="TextBoxRePassWord" runat="server" TextMode="Password" 
                                            Width="195px"></asp:TextBox>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="style6">
                                    <div style="width: 100%; margin-right: 0px; height: 100%;">
                                        Email:</div>
                                </td>
                                <td>
                                    <div style="width: 100%; height: 100%">
                                        <asp:TextBox ID="TextBoxEmail" runat="server" Width="195px"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                            ControlToValidate="TextBoxEmail" Display="Dynamic" ErrorMessage="必须填写电子邮件地址" 
                                            ValidationGroup="AllValidators">*</asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                            ControlToValidate="TextBoxEmail" Display="Dynamic" 
                                            ErrorMessage="电子邮件地址必须采用 name@domain.xyz 格式" 
                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                            ValidationGroup="AllValidators">无效格式</asp:RegularExpressionValidator>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="style6">
                                    &nbsp;</td>
                                <td>
                                    <div style="width: 100%; height: 100%">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:Button ID="ButtonSubmit" runat="server" onclick="ButtonSubmit_Click" 
                                            style="top: 284px; left: 402px; position: absolute; float: right; height: 29px; width: 57px" 
                                            Text="提交" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td class="style2">
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</center>
</html>
